package cn.ronghuanet.base.service;

import cn.ronghuanet.base.query.BaseQuery;
import cn.ronghuanet.base.util.PageList;

import javax.management.Query;
import java.util.List;

public interface IBaseService<T> {
    //新增
    void insertOne(T t);
    //修改
    void updateOne(T t);
    //单个删除
    void deleteOne(Long id);
    //批量删除
    void patchDel(List<Long> ids);
    //查询单个
    T getOne(Long id);
    //查询所有
    List<T> loadAll();
    //分页查询
    PageList<T> queryPage(BaseQuery query);
}
